package org.sidora.strata.site;

import org.openide.util.HelpCtx;
import org.openide.util.NbBundle;
import org.openide.util.actions.CallableSystemAction;
import org.sidora.core.Site;

/**
 * SiteNavigation
 * @author Enric Tartera, Juan Manuel Gimeno, Roger Masgoret
 * @version 1.0
 */
public final class SiteNavigation extends CallableSystemAction {
    private SitePanel retValue = new SitePanel();
    
    
    public void performAction() {
        
    }
    
    public void fillSiteComboBox(){
        retValue.fillSiteList();
    }
    
    public String getName() {
        return NbBundle.getMessage(SiteNavigation.class, "CTL_SiteNavigator");
    }
    
    protected String iconResource() {
        return "org/sidora/strata/site/site16.png";
    }
    
    public HelpCtx getHelpCtx() {
        return HelpCtx.DEFAULT_HELP;
    }
    
    protected boolean asynchronous() {
        return false;
    }
    
    public java.awt.Component getToolbarPresenter() {
        return retValue;
    }
    
    public void setSelectedSite(int i){
        retValue.setSelectedSite(i);
    }
    
    public Site getSelectedSite(){
        return retValue.getSelectedSite();
    }
    
}
